package session02.bean;

import java.util.ArrayList;

public class HusbandBean {
    private int husID;
    private String name;
    private WifeBean myWife;
    private ArrayList<ChildBean> myChildren = new ArrayList<>();

    public HusbandBean() {

    }

    public HusbandBean(int husID, String name) {
        this.husID = husID;
        this.name = name;
    }

    public HusbandBean(int husID, String name, WifeBean myWife) {
        this.husID = husID;
        this.name = name;
        this.myWife = myWife;
    }

    public int getHusID() {
        return husID;
    }

    public void setHusID(int husID) {
        this.husID = husID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public WifeBean getMyWife() {
        return myWife;
    }

    public void setMyWife(WifeBean myWife) {
        this.myWife = myWife;
    }

    public ArrayList<ChildBean> getMyChildren() {
        return myChildren;
    }

    public void setMyChildren(ArrayList<ChildBean> myChildren) {
        this.myChildren = myChildren;
    }

    @Override
    public String toString() {
        return "HusbandBean{" +
                "husID=" + husID +
                ", name='" + name + '\'' +
                ", myWife=" + myWife +
                '}';
    }
}
